package com.bjsxt.feign;

import com.bjsxt.config.feign.OAuth2FeiginConfig;
import com.bjsxt.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "member-service",configuration = OAuth2FeiginConfig.class,path = "/users")
public interface UserServiceFeign {


  //  List<UserDto> getBasicUsers(@RequestParam("ids") List<Long>ids) ;

    @GetMapping("/basic/users")
    Map<Long,UserDto> getBasicUsers(@RequestParam(value = "ids",required = false) List<Long>ids,
                                    @RequestParam(value = "userName",required = false) String username,
                                    @RequestParam(value = "mobile",required = false) String mobile) ;

}























































